package com.xbxkj.commen.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张子艺
 * @since 2020-01-02
 */
@TableName("tr_user_address")
@ApiModel(value="UserAddress对象", description="")
public class UserAddress extends Model<UserAddress> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    @ApiModelProperty(value = "id（新增时前端不用，编辑时用）")
    private Integer id;

    @ApiModelProperty(value = "收货名字")
    @TableField("receiving_name")
    private String receivingName;

    @ApiModelProperty(value = "收货手机号")
    @TableField("receiving_tel")
    private String receivingTel;

    @ApiModelProperty(value = "省")
    @TableField("province")
    private String province;

    @ApiModelProperty(value = "市")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "区(县)")
    @TableField("area")
    private String area;

    @ApiModelProperty(value = "详细地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "是否默认  1 是 2 否")
    @TableField("is_default")
    private Integer isDefault;

    @ApiModelProperty(value = "关联的用户openId(前端不用)")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "创建时间(前端不用)")
    @TableField("create_time")
    private Long createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getReceivingName() {
        return receivingName;
    }

    public void setReceivingName(String receivingName) {
        this.receivingName = receivingName;
    }
    public String getReceivingTel() {
        return receivingTel;
    }

    public void setReceivingTel(String receivingTel) {
        this.receivingTel = receivingTel;
    }
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserAddress{" +
            "id=" + id +
            ", receivingName=" + receivingName +
            ", receivingTel=" + receivingTel +
            ", province=" + province +
            ", city=" + city +
            ", area=" + area +
            ", address=" + address +
            ", isDefault=" + isDefault +
            ", userId=" + userId +
            ", createTime=" + createTime +
        "}";
    }
}
